package com.cloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @BelongsProject: my
 * @BelongsPackage: com.cloud.controller
 * @Author: ji ge
 * @CreateTime: 2024-02-02  12:03
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
public class OrderController {
    public static final String INVOKE_URL ="http://cloud-provider-payment";

    @Resource
    private RestTemplate restTemplate;

    @GetMapping("/consumer/paymentZk")
    public String paymentZk(){
        return  restTemplate.getForObject(INVOKE_URL + "/paymentZipkin", String.class);
    }
}
